package com.qixin.web.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 微信充电桩用户
 * </p>
 *
 * @author 张子艺
 * @since 2018-10-02
 */
@TableName("we_user")
public class WeUser extends Model<WeUser> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 用户的唯一标识
     */
	private String openid;
    /**
     * 用户昵称
     */
	private String nickname;
    /**
     * 用户性别1男2女0未知
     */
	private String sex;
    /**
     * 用户个人资料填写省份
     */
	private String province;
    /**
     * 普通用户个人资料填写的城市
     */
	private String city;
    /**
     * 国家，中国CN
     */
	private String country;
    /**
     * 用户头像 
     */
	private String headimgurl;
    /**
     * 用于区分是否微信登陆用户 或者是手动注册用户  1 微信 2 手动注册
     */
	@TableField("wechat_flag")
	private Integer wechatFlag;
    /**
     * 手动注册用户密码
     */
	@TableField("pass_word")
	private String passWord;

    /**
     * 手动注册用户账户
     */
	@TableField("user_name")
	private String userName;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}

	public Integer getWechatFlag() {
		return wechatFlag;
	}

	public void setWechatFlag(Integer wechatFlag) {
		this.wechatFlag = wechatFlag;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WeUser{" +
				"id=" + id +
				", openid='" + openid + '\'' +
				", nickname='" + nickname + '\'' +
				", sex='" + sex + '\'' +
				", province='" + province + '\'' +
				", city='" + city + '\'' +
				", country='" + country + '\'' +
				", headimgurl='" + headimgurl + '\'' +
				", wechatFlag=" + wechatFlag +
				", passWord='" + passWord + '\'' +
				", userName='" + userName + '\'' +
				'}';
	}
}
